Skip to main content

TerrainData

Members

The data about how the terrain of a planet generates.


Height

It is an array whose values are of the type number. It will always have a length of 2.


Life

Inherits the value of the planet's Atmosphere. It is of the type boolean.


MountainDensity

It is an array whose values are of the type number. It will always have a length of 2.


RockDensity

It is an array whose values are of the type number. It will always have a length of 2.


Roughness

It is an array whose values are of the type number. It will always have a length of 2.


Slopes

It is an array whose values are of the type number. It will always have a length of 2.


Temperature

It is an array whose values are of the type number. It will always have a length of 2.


TreeSettings


amount_of_branches

It is an array whose values are of the type number. It will always have a length of 2.


amount_of_splits

It is an array whose values are of the type number. It will always have a length of 2.


branch_angles

It is an array whose values are of the type number. It will always have a length of 2.


branch_offset

It is an array whose values are of the type number. It will always have a length of 2.


branch_size_percentage


max


height

It is of the type number.


width

It is of the type number.


min


height

It is of the type number.


width

It is of the type number.


trunk_size


max


height

It is of the type number.


width

It is of the type number.


min


height

It is of the type number.


width

It is of the type number.


Water

Inherits the value of the planet's WaterLevel ~= nil. It is of the type boolean.

Luau Type

This is the luau type for TerrainData. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

type TerrainData = {
TreeSettings: {
branch_size_percentage: {
max: {
height: number,
width: number,
},
min: {
height: number,
width: number,
},
},
branch_angles: { number },
trunk_size: {
max: {
height: number,
width: number,
},
min: {
height: number,
width: number,
},
},
branch_offset: { number },
amount_of_branches: { number },
amount_of_splits: { number },
},
Slopes: { number },
Life: boolean,
Water: boolean,
Temperature: { number },
Height: { number },
RockDensity: { number },
MountainDensity: { number },
Roughness: { number },
}